<div class="column full">
    <span class="message information"><strong>Last login</strong> 
        <?php
        $this->load->model('Userdata_model');
        $userdata = userdata_model::get_userdata($this->session->userdata('username'));
        echo date('M-d-Y g:i A', $userdata->last_login);
        echo ' From ';
        echo $this->session->userdata('ip_address');
        ?></span>
</div>                
<div class="column width20 fl">

    <div class="box themed_box">
        <h2 class="box-header"> At a Glance</h2>
        <div class="box-content typo">

            <ul class="width50 fl">
                <li><h3><i class="title"> Content </i></h3></li>
                <li><a href="#"><strong>15</strong> Posts</a></li>
                <li><a href="#"><strong>23</strong> Pages</a></li>
                <li><a href="#"><strong>8</strong> Category</a></li>
                <li><a href="#"><strong>5</strong> Tags</a></li>
            </ul>
            <ul class="width40 fl">
                <li><h3><i class="title"> Discussions </i></h3></li>
                <li><a href="#"><strong>40</strong> Comments</a></li>
                <li><a class="approved" href="#"><strong>21</strong> Approved</a></li>
                <li><a class="pending" href="#"><strong>18</strong> Pending </a></li>
                <li><a class="spam" href="#"><strong>1</strong> Spam</a></li>				
            </ul>
            <div class="clear"></div>
        </div>
    </div>

    <div class="box themed_box">
        <h2 class="box-header"> Latest news from <strong>IMG</strong>Igniter </h2>
        <div class="box-content">
            <div id="bargraph" class="chart"></div>
        </div>
    </div>

</div>

<div class="column half fr">

    <div class="box themed_box">
        <h2 class="box-header"> analytics </h2>
        <div class="box-content">
            <div id="linegraph" class="chart"></div>
        </div>
    </div>

    <div class="box themed_box">
        <h2 class="box-header"> Users - <?php echo $active['total'] + $pending['total'] + $suspended['total'] ?></h2>
        <div class="box-content typo">
            <script type="text/javascript">
                $(document).ready(function() {
                    $(".progressbaractive").progressbar({
                        value: 0
                    });
                    $(".progressbarpending").progressbar({
                        value: 0
                    });
                    $(".progressbarsuspended").progressbar({
                        value: 0
                    });
		
                    $(".progressbaractive .ui-progressbar-value").animate({
                        width:'<?php echo $active['percent'] . '%' ?>'
                    }, 1500);
                    $(".progressbarpending .ui-progressbar-value").animate({
                        width:'<?php echo $pending['percent'] . '%' ?>'
                    }, 1500);
                    $(".progressbarsuspended .ui-progressbar-value").animate({
                        width:'<?php echo $suspended['percent'] . '%' ?>'
                    }, 1500);
                });
            </script>

            <a href="#" class="approved">Active <strong> <?php echo $active['percent'] . '% - ' . $active['total'] ?></strong></a>
            <div class="progressbaractive"></div>
            <a href="#" class="pending">Pending <strong> <?php echo $pending['percent'] . '% - ' . $pending['total'] ?></strong></a><br />
            <div class="progressbarpending"></div>
            <a href="#" class="spam">Suspended <strong> <?php echo $suspended['percent'] . '% - ' . $suspended['total'] ?></strong></a><br />
            <div id="prog-30" class="progressbarsuspended"></div>
            <div class="clear"></div>
        </div>
    </div>
</div>